# 01
print("hello world")
print("Python,我来了")

for i in range(0,10):
    print("hello world")

# 02
radius = 25
area =3.1415*radius*radius
print(area)
print("{:.2f}".format(area))

# 03
a,b=0,1
while a<1000:
    print(a,end=",")
    a,b=b,a+b
print()
# 04
# name=input("输入姓名：")
name="张三丰"
print("{}同学，学好Python，前途无量！".format(name))
print("{}大侠，学好Python，大展拳脚！".format(name[0]))
print("{}哥哥，学好Python，人见人爱！".format(name[1:]))

# 05
from datetime import datetime
now =datetime.now()
print(now)
print(now.strftime("%x"))
print(now.strftime("%x"))

#06
import math
dayup = math.pow((1.0+0.005),365)
daydown = math.pow((1.0-0.005),365)
print("向上：{:.2f}，向下：{:.2f}".format(dayup,daydown))

#06-2
import math
dayfactor=0.01
dayup = math.pow((1.0+dayfactor),365)
daydown = math.pow((1.0-dayfactor),365)
print("向上：{:.2f}，向下：{:.2f}".format(dayup,daydown))

#07
TempStr = input("请输入带有符号的温度值：")
if TempStr[-1] in ['F','f']:
    C=(eval(TempStr[0:-1])-32)/1.8
    print("转换后的温度是{:.2f}C".format(C))
elif TempStr[-1] in ['C','c']:
    F = (eval(TempStr[0:-1]) + 32) * 1.8
    print("转换后的温度是{:.2f}F".format(F))
else:
    print("输入格式错误")

#08
import turtle as t
t.pensize(2)
t.circle(10)
t.circle(40)
t.circle(80)
t.circle(160)